const fs = require('fs');
fs.readFile('./11files/1.txt', 'utf-8', (error, data) => {
    if (error == null) {
        console.log('文件读取成功');
    } else {
        console.log('文件读取失败');
    }
});

fs.readFile(__dirname + '/files/1.txt', 'utf-8', (error, data) => {
    if (error == null) {
        console.log('文件读取成功');
    } else {
        console.log('文件读取失败');
    }

    console.log(__dirname);
    console.log(__filename);
});